#include "camera_adapter.h"

#include <rclcpp/rclcpp.hpp>

int main(int argc, char** argv)
{
    auto logger = rclcpp::get_logger("perception");
    RCLCPP_INFO(logger, "perception start!");

    // Force flush of the stdout buffer.
    setvbuf(stdout, NULL, _IONBF, BUFSIZ);

    rclcpp::init(argc, argv);
    auto perceptionSptr = std::make_shared<perception::camera::CameraAdapter>("camera_perception_b");

    rclcpp::spin(perceptionSptr);
    rclcpp::shutdown();

    return 0;
}